html,
body {
    height: 100%;
    width: 100%;
    // overflow: hidden;
    // background: rgba(156, 89, 100, .2);
}


.container {
    display: flex;
    position: absolute;
    // width: 100%;
    height: 90%;
    left: 50%;
    top: 50%;
    transform: translateX(-50%) translateY(-50%)
}

.common {
    width: 70px;
    height: 100%;
    background: #3d3d3d;

    .userIcon {
        display: flex;
        margin: 20px auto;
        width: 50px;
        height: 50px;
        border: 1px solid darkcyan;
    }

}

.userList {
    display: flex;
    flex-direction: column;
    width: 220px;
    height: 100%;
    background: #E6E5E5;
    border-right: 2px solid #D6D6D6;


    .user {
        line-height: 50px;
        background: #F7F7F7;
        text-align: center;
        font-size: 16px;
        font-weight: bolder;
    }

    .userItem {
        overflow: auto;
        height: 100%;

        .users {
            height: 40px;
            display: flex;
            background: #DFDEDE;
            border-bottom: 1px solid #cccccc;

            .users_img {
                display: flex;
                margin: 2px;
                width: 36px;
                height: 36px;
                // border: 1px solid #caa;
            }

            .users_nickname {
                line-height: 40px;
                font-size: 12px;
                text-align: left;
                padding-left: 10px;
                // padding-top: 5px;
            }
        }

    }

    //滚动条
    &::-webkit-scrollbar {
        width: 4px;
        /*height: 4px;*/
    }

    &::-webkit-scrollbar-thumb {
        border-radius: 10px;
        -webkit-box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.2);
        background: rgba(0, 0, 0, 0.2);
    }

    &::-webkit-scrollbar-track {
        -webkit-box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.2);
        border-radius: 0;
        background: rgba(0, 0, 0, 0.1);

    }
}

.chat {
    display: flex;
    flex-direction: column;
    width: 600px;
    height: 100%;
    // background: bisque;

    .userName {
        padding-left: 20px;
        height: 49px;
        line-height: 60px;
        background: #F7F7F7;
        // text-align: center;
        font-size: 20px;
        // font-weight: bolder;
        border-bottom: 1px solid#E7E7E7;
    }

    .content {
        flex-grow: 1;
        overflow: auto;
        height: 75%;
        background: #F5F5F5;

        //滚动条
        &::-webkit-scrollbar {
            width: 4px;
            /*height: 4px;*/
        }

        &::-webkit-scrollbar-thumb {
            border-radius: 10px;
            -webkit-box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.2);
            background: rgba(0, 0, 0, 0.2);
        }

        &::-webkit-scrollbar-track {
            -webkit-box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.2);
            border-radius: 0;
            background: rgba(0, 0, 0, 0.1);

        }

        .other,
        .own {
            display: flex;
            // min-height: 40px;
            margin-bottom: 10px;

            .img {
                margin: 5px;
                display: flex;
                width: 50px;
                height: 50px;
                border: 1px solid #dea;
            }



            .right,
            .left {

                // display: flex;
                // flex-direction: column;
                .nickname {
                    padding-left: 10px;
                    padding-right: 10px;
                    padding-bottom: 5px;
                    color: #B2B2B2;
                    // background: #ddeeaa;
                }

                .talkContent {

                    background: #FFFFFF;
                    border: 1px solid #EDEDED;
                    border-radius: 10%;
                    padding: 10px;
                    word-wrap: break-word;
                    max-width: 200px;
                    // min-width: 50px;
                    // min-height: 30px;
                    // height: 50px;

                }
            }

            .left {
                .nickname {
                    text-align: right;
                }

                .talkContent {
                    background: #9EEA6A
                }
            }

        }


        .own {
            flex-direction: row-reverse;

        }

        .system {
            text-align: center;
            margin-bottom: 10px;

            span {
                font-size: 12px;
                padding-left: 5px;
                padding-right: 5px;
                border-radius: 5px;
                color: azure;
                background: #ddd;
            }
        }
    }

    .edit {
        position: relative;
        border: 2px solid #ECECEC;
        display: flex;
        flex-direction: column;
        height: 150px;

        .expressionbox {
            display: none;
            top: -188px;
            position: absolute;
            // border: 1px solid #abc;
            height: 188px;
            width: 188px;
            background-color: #fff;

            table {
                border: 1px solid #abc;

                tr {
                    td {

                        // display: inline;
                        // text-indent:0%;
                        img {
                            vertical-align: bottom;
                            margin: 3px;
                            width: 25px;
                            height: 25px;
                        }

                        &:hover {
                            background-color: #eee;
                        }
                    }

                }
            }
        }

        .column {
            margin-top: 15px;

            display: flex;
            // height: 20px;
            padding: 5px;
            padding-left: 20px;

            .icon {
                // padding: 5px;
                background-size: contain;
                height: 25px;
                width: 25px;
                margin-right: 12px;

                &:hover {
                    background-color: #eee;
                }
            }

            .icon1 {
                background-image: url(../img/笑脸.png);
            }

            .icon2 {
                background-image: url(../img/文件夹.png);

            }

            .icon3 {
                background-image: url(../img/截图.png);
                height: 23px;
                width: 23px;
            }

            .icon4 {
                background-image: url(../img/消息.png);

            }
        }

        textarea {
            padding-left: 20px;
            resize: none;
            border: none;
            flex-grow: 1;
            // height: 100%;
            font-size: 16px;
            font-family: "微软雅黑";

            &:focus-visible {
                outline: none;

            }

            //滚动条
            &::-webkit-scrollbar {
                width: 4px;
                /*height: 4px;*/
            }

            &::-webkit-scrollbar-thumb {
                border-radius: 10px;
                -webkit-box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.2);
                background: rgba(0, 0, 0, 0.2);
            }

            &::-webkit-scrollbar-track {
                -webkit-box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.2);
                border-radius: 0;
                background: rgba(0, 0, 0, 0.1);

            }
        }

        button {
            color: #606060;
            align-self: flex-end;
            width: 50px;
            height: 25px;
            background-color: #F5F5F5;
            border: 1px solid #E5E5E5;
            margin-bottom: 3px;
            margin-right: 3px;
        }
    }
}